import { createRouter, createWebHistory } from 'vue-router';
import TagManagement from '@/components/image/TagManagement.vue';
import ShowImage from '@/components/image/ShowImage.vue';
import ImageOverview from '@/components/image/ImageOverview.vue';

const routes = [
    { path: '/', redirect: '/tags' },  // 默认跳转到标签管理
    { path: '/tags', component: TagManagement },
    { path: '/images', component: ShowImage },
    { path: '/image-overview', component: ImageOverview }
];

const router = createRouter({
    history: createWebHistory(),
    routes
});

export default router;
